home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / etc / bash_completion.d / bittorrent < prev    next >
Text File  |  2009-04-02  |  1KB  |  39 lines

  1. # -*- mode: shell-script; sh-basic-offset: 8; indent-tabs-mode: t -*-
  2. # ex: ts=8 sw=8 noet filetype=sh
  3. #
  4. # btdownloadheadless(1) completion by Guillaume Rousse <rousse@ccr.jussieu.fr>
  5.  
  6. _btdownload()
  7. {
  8.     local cur prev
  9.  
  10.     COMPREPLY=()
  11.     cur=`_get_cword`
  12.     prev=${COMP_WORDS[COMP_CWORD-1]}
  13.  
  14.     case "$prev" in
  15.         --@(responsefile|saveas))
  16.             _filedir
  17.             return 0
  18.             ;;
  19.     esac
  20.  
  21.      if [[ "$cur" == -* ]]; then
  22.         COMPREPLY=( $( compgen -W '--max_uploads --keepalive_interval \
  23.                 --download_slice_size --request_backlog \
  24.                 --max_message_length --ip --minport --maxport \
  25.                 --responsefile --url --saveas --timeout \
  26.                 --timeout_check_interval --max_slice_length \
  27.                 --max_rate_period --bind --upload_rate_fudge \
  28.                 --display_interval --rerequest_interval \
  29.                 --min_peers --http_timeout --max_initiate \
  30.                 --max_allow_in --check_hashes \
  31.                 --max_upload_rate --snub_time --spew \
  32.                 --rarest_first_cutoff --min_uploads \
  33.                 --report_hash_failures' -- $cur ) )
  34.     else
  35.         _filedir
  36.     fi
  37. }
  38. complete -F _btdownload btdownloadheadless.py btdownloadcurses.py btdownloadgui.py
  39.